<?php

namespace App\Http\Controllers\Home;

use Illuminate\Http\Request;
use Overtrue\EasySms\EasySms;
use App\Http\Controllers\Controller;

class TestController extends Controller{
    //
    public function index(){
        /*
        $config = [
            // http 请求的超时时间(秒)
            'timeout' => 5.0,
            // 默认发送配置
            'default' => [
                // 网关调用策略，默认：顺序调用
                'strategy' => \Overtrue\EasySms\Strategies\OrderStrategy::class,
                // 可用的发送网关
                'gateways' => [
                    'chuanglan'
                ]
            ],
            'gateways' => [
                'errorlog' => [
                    'file' => '/tmp/easy-sms.log',
                ],
                'chuanglan' => [
                    'username' => config('easysms.gateways.chuanglan.username'),
                    'password' => config('easysms.gateways.chuanglan.password'),
                ],
            ],
        ];
        $easySms = new EasySms($config);
        // 测试成功。
        $easySms->send(18711104393, [
            'content'  => '【253云通讯】您的验证码为: qwert'
        ]);
        */
        $res = \Cache::get('verificationCode_5D3Z3lUJjVWQfRm');
        dd($res);
    }
}
